/*
 * Main.cs
 * 
 * Copyright © 2008 David Paleino <d.paleino@gmail.com>
 * 
 *   This library is free software; you can redistribute it and/or
 *   modify it under the terms of the GNU Lesser General Public
 *   License as published by the Free Software Foundation; either
 *   version 2.1 of the License, or (at your option) any later version.
 *   
 *   This library is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 *   Lesser General Public License for more details.
 *   
 *   You should have received a copy of the GNU Lesser General Public
 *   License along with this library; if not, see
 *   <http://www.gnu.org/licenses/>.
 */

using System;
using System.Collections;
using HanskaLabs.Pastebin;

namespace TestProject
{
	class MainClass
	{
		public static void Main(string[] args)
		{
			Pastebin p = new Pastebin();
			IPastebin paste = p.GetPastebin("paste.debian.net");
			Hashtable data = paste.GetPaste("22992");
						
			foreach (DictionaryEntry d in data) {
				Console.WriteLine(d.Key + ": " + d.Value);
			}
			
			foreach (string s in p.GetAvailablePastebins()) {
				Console.WriteLine(s);
				foreach (string l in p.GetAvailableLanguages(s)) { 
					Console.Write(l+" ");
				}
				foreach (int t in p.GetAvailableExpires(s)) {
					Console.Write(t.ToString()+" ");
				}
			}
		}
	}
}